package com.mingqijia.gassafety.webserver.request.workorder.order;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@Data
public class OrderSparkOrderRequest {

    //燃气户号、组织编码、当前工单编号
    @ApiModelProperty(value = "燃气户号")
    private String subsCode;

    @ApiModelProperty(value = "imei")
    @NotEmpty(message = "imei不能为空")
    @Pattern(regexp = "^\\d{15}", message = "设备号格式有误")
    private String imei;

    @ApiModelProperty(value = "工单编号")
    @NotEmpty(message = "工单编号不能为空")
    private String orderNo;

    @ApiModelProperty(value = "spId")
    @NotEmpty(message = "spId不能为空")
    private String spId;

    @ApiModelProperty(value = "不传代表是查询当前状态的，传1代表是创建或者重试，2代表是取消工单")
    private Integer state;
    
    @ApiModelProperty(value = "工单类型 11：安装单 12：告警单 13维修单")
    private Integer orderType;


}
